package com.xizi.lotterySystem.service;

import com.xizi.lotterySystem.controller.param.CreateActivityParam;
import com.xizi.lotterySystem.controller.param.PageListParam;
import com.xizi.lotterySystem.dao.dataobject.ActivityDO;
import com.xizi.lotterySystem.service.dto.ActivityDetailDTO;
import com.xizi.lotterySystem.service.dto.CreateActivityDTO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface IActivityService {

    @Transactional
    CreateActivityDTO createActivity(CreateActivityParam param);

    Long selectCount();

    List<ActivityDO> selectList(PageListParam param);

    ActivityDetailDTO selectDetail(Long activityId);

    void updateCacheActivityDetail(Long activityId);
}
